<!DOCTYPE html>
<!-- This is laid out correctly with LayoutNG, but not with the legacy engine.
     We can use this to determine which layout engine is being used. -->
<div style="float:right; width:50px; height:100px;"></div>
<div style="width:100px;">
  <div style="height:15px;"></div>
  <div id="target" style="background:red;">
    <div style="clear:right;">
      <div style="margin-top:85px;"></div>
    </div>
  </div>
</div>

<!-- Try our best to trigger legacy engine fallback for printing, by using as
     many layout types as we can think of. -->
<div style="display:flex;"></div>
<div style="display:grid;"></div>
<div style="display:table;"></div>
